package org.example;
//状态模式(实现)
public class AirConditionerOffState implements AirConditionerState {
    @Override
    public void powerOn(AirConditionerController controller, AirConditioner airConditioner) {
        System.out.println("空调已开启");
        controller.addAirConditioner(airConditioner);
    }

    @Override
    public void powerOff(AirConditionerController controller, AirConditioner airConditioner) {
        System.out.println("空调已经关闭，不能再次关闭");
    }

    @Override
    public void clean(AirConditionerController controller, AirConditioner airConditioner) {
        System.out.println("空调已打开空气净化功能");
    }

    @Override
    public void dehumidification(AirConditionerController controller, AirConditioner airConditioner) {
        System.out.println("空调温度已打开除湿功能");
    }

    @Override
    public void setTemperature(AirConditionerController controller, int temperature) {
        System.out.println("空调未开启，无法设置温度");
    }
}
